package top.hmtools.mapper.plus.bean;

import javax.persistence.*;

@Table(name = "user_info")
public class UserInfo {
	@Id
	private String id;

	/**
	 * 主键2
	 */
	@Id
	private String key;

	/**
	 * 姓名
	 */
	private String username;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 性别
	 */
	private Integer sex;

	/**
	 * @return id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 */
	public UserInfo setId(String id) {
		this.id = id;
		return this;
	}

	/**
	 * 获取主键2
	 *
	 * @return key - 主键2
	 */
	public String getKey() {
		return key;
	}

	/**
	 * 设置主键2
	 *
	 * @param key
	 *            主键2
	 */
	public UserInfo setKey(String key) {
		this.key = key;
		return this;
	}

	/**
	 * 获取姓名
	 *
	 * @return username - 姓名
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * 设置姓名
	 *
	 * @param username
	 *            姓名
	 */
	public UserInfo setUsername(String username) {
		this.username = username;
		return this;
	}

	/**
	 * 获取密码
	 *
	 * @return password - 密码
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * 设置密码
	 *
	 * @param password
	 *            密码
	 */
	public UserInfo setPassword(String password) {
		this.password = password;
		return this;
	}

	/**
	 * 获取性别
	 *
	 * @return sex - 性别
	 */
	public Integer getSex() {
		return sex;
	}

	/**
	 * 设置性别
	 *
	 * @param sex
	 *            性别
	 */
	public UserInfo setSex(Integer sex) {
		this.sex = sex;
		return this;
	}

	@Override
	public String toString() {
		return "UserInfo [id=" + id + ", key=" + key + ", username=" + username + ", password=" + password + ", sex="
				+ sex + "]";
	}
	
}